package com.hht.study.proxy.staticProxy;

import org.springframework.stereotype.Service;

/**
 * @author hht
 * @date 2022/3/6
 */
public class HelloServiceProxy implements IHelloService{

    private final IHelloService helloService;

    HelloServiceProxy(IHelloService helloService){
        this.helloService=helloService;
    }

    @Override
    public void say() {
        System.out.println("静态代理增强say方法");
        helloService.say();
    }
}
